﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>递归</title>
</head>
<body>
<script>

function recursion(n){
   if(n==0){
   return 0;
  }
   else if(n==1){
    return 1;
  }
   else {
     return recursion(n-1)+recursion(n-2)
  }
  }

println(recursion(18));

function println(a){
  document.write(a+"<br>")
}
</script>
</body>
</html>